package two.chapter_3.c3_5;

import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;

public class Dedup {
    public static void main(String[] args){
        Set<String> set=new HashSet<>();
        while (!StdIn.isEmpty()){
            String key=StdIn.readString();
            if (!set.contains(key)){
                set.add(key);
                StdOut.println(key);
            }
        }
    }
}
